‹#›
Autodesk Inventor 定制开发在线培训 2010
6.有些数据的类型不同
§VBA Long = VB.Net Integer
§VBA:
Dim facetCount As Long
§
§需要改为:
Dim facetCount As Integer
§VBA Variant = VB.Net Object
7.Set 关键字不需要
8..NET 中，需要用圆括号把方法的参数括起来
•
•The .Net Languages: A Quick Translation Guide, Brian Bischof
•
§
§
•VB 和 VB.Net 不同之处（续）
Dim facetCount As Long
Dim facetCount As Integer

| - some data types are different
| - also as I already mentioned the “Set” keyword is not used anymore, but this is automatically removed by the .NET environment
| - you always need to use parentheses
| - and here is some help when doing the conversion